package com.skin.admin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author skin
 * @since 2018-08-03
 */
public class Goods extends Model<Goods> {

    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 价格
     */
    private Double price;
    /**
     * 销售价格
     */
    private Double saleprice;
    /**
     * 创建时间
     */
    private Date createtime;
    private Integer flag;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 描述
     */
    private String desc;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(Double saleprice) {
        this.saleprice = saleprice;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Goods{" +
        "id=" + id +
        ", name=" + name +
        ", num=" + num +
        ", price=" + price +
        ", saleprice=" + saleprice +
        ", createtime=" + createtime +
        ", flag=" + flag +
        ", type=" + type +
        ", desc=" + desc +
        "}";
    }
}
